#include<bits/stdc++.h>
#define rep(i,l,r) for(int i=(l);i<=(r);i++)
#define per(i,r,l) for(int i=(r);i>=(l);i--)
using namespace std;
int rd() {int x=0,f=1;char c=getchar();while(!isdigit(c))f=c=='-'?-1:f,c=getchar();while(isdigit(c))x=x*10+(c^48),c=getchar();return x*f;}
const int N=100005;
int n,cnt[N],now;
signed main() {
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    n=rd();
    rep(i,1,n) cnt[rd()]++;
    rep(i,1,100000) now-=min(cnt[i],now),now+=cnt[i];
    printf("%d\n",now);
    return 0;
}
//g++ -std=c++14 -O2 -Wall -fsanitize=address,undefined -o duel duel.cpp